<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>班次列表</title>
    <%@include file="common/head.jsp" %>
    <link href="${staticPath}/qtimages/images/apple-touch-icon.png" rel="apple-touch-icon">
    <link href="${staticPath}/qtimages/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/animate/animate.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/magnific-popup/magnific-popup.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="${staticPath}/qtimages/css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="${staticPath}/qtimages/css/custom.css">
    <link rel="stylesheet" href="${staticPath}/images/hsgcommon/divqt.css" type="text/css">
</head>
<script type="text/javascript">
    //附件下载
    function down(fujianPath) {
        var url = "${contextPath}/common/download?filename=" + fujianPath;
        url = encodeURI(url);
        window.open(url, "_self");
    }
</script>
<body>
<%@ include file="qttop.jsp" %>
<%@ include file="bht.jsp" %>
<main id="main">
    <section id="services" class="wow fadeInUp">
        <div class="container">
            <div class="section-header">
                <h2>◇◆ 班次 ◆◇</h2>
            </div>
            <div class="row">
                <form name="formSearch" id="formSearch" method="post" action="${contextPath}/${actionName}" style="width:100%">
        编号:<input type="text" style='border:solid 1px #000000; color:#666666' name="bianhao" id="bianhao" size="12px" value="${req.bianhao}"/>&nbsp;&nbsp;
        类别:
        <select style="border:solid 1px #000000; color:#666666;" name="leibieid" id="leibieid">
            <option value="">全部</option>
            <c:forEach items="${leibieList}" var="s">
                <c:choose>
                    <c:when test="${s.id==req.leibieid}">
                        <option value="${s.id}" selected>
                                ${s.mingcheng }
                        </option>
                    </c:when>
                    <c:otherwise>
                        <option value="${s.id}">
                                ${s.mingcheng}
                        </option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>&nbsp;&nbsp;
        起始站:<input type="text" style='border:solid 1px #000000; color:#666666' name="qishizhan" id="qishizhan" size="12px" value="${req.qishizhan}"/>&nbsp;&nbsp;
        终点站:<input type="text" style='border:solid 1px #000000; color:#666666' name="zhongdianzhan" id="zhongdianzhan" size="12px" value="${req.zhongdianzhan}"/>&nbsp;&nbsp;
        日期:<input type="text" name="riqi" id="riqi" style="border:1px solid #cccccc;" class="Wdate" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" onClick="WdatePicker({'dateFmt':'yyyy-MM-dd'})"  size="15px" value="${req.riqi}"/>&nbsp;&nbsp;
        票数:<input type="text" style='border:solid 1px #000000; color:#666666' name="shuliang" id="shuliang" size="12px" value="${req.shuliang}"/>&nbsp;&nbsp;
        备注:<input type="text" style='border:solid 1px #000000; color:#666666' name="beizhu" id="beizhu" size="12px" value="${req.beizhu}"/>&nbsp;&nbsp;

                    <input type="submit" name="Submit" value="查找" class='hsgqiehuanshitu'/>
                </form>
                <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="00FFFF"
                       style="border-collapse:collapse" class="newsline">
                    <tr>
<%--                        <td width="40px" align="center" bgcolor="">序号</td>--%>
        <td bgcolor='' align="center">编号</td>
        <td bgcolor='' align="center">类别</td>
        <td bgcolor='' align="center">起始站</td>
        <td bgcolor='' align="center">终点站</td>
        <td bgcolor='' align="center">起始时间</td>
        <td bgcolor='' align="center">到达时间</td>
        <td bgcolor='' align="center">日期</td>
        <td bgcolor='' align="center">价格</td>
        <td bgcolor='' align="center">票数</td>
        <td bgcolor='' align="center">备注</td>

                        <td width="40px" align="center" bgcolor="">详细</td>
                    </tr>

                    <c:forEach items="${pageInfo.records}" var="info" varStatus="s">
                        <tr>
<%--                            <td width="40px" align="center">--%>
<%--                                    ${s.index+1}--%>
<%--                            </td>--%>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.bianhao)>'16'}">
                        ${fn:substring(info.bianhao,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.bianhao}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.leibie.mingcheng)>'16'}">
                        ${fn:substring(info.leibie.mingcheng,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.leibie.mingcheng}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.qishizhan)>'16'}">
                        ${fn:substring(info.qishizhan,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.qishizhan}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.zhongdianzhan)>'16'}">
                        ${fn:substring(info.zhongdianzhan,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.zhongdianzhan}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.qishishijian)>'16'}">
                        ${fn:substring(info.qishishijian,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.qishishijian}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.daodashijian)>'16'}">
                        ${fn:substring(info.daodashijian,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.daodashijian}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.riqi)>'16'}">
                        ${fn:substring(info.riqi,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.riqi}
                    </c:otherwise>
                </c:choose>
            </td>
            <td bgcolor="" align="center">
                ${info.jiage}
            </td>
            <td bgcolor="" align="center">
                ${info.shuliang}
            </td>
            <td bgcolor="" align="center">
                <c:choose>
                    <c:when test="${fn:length(info.beizhu)>'16'}">
                        ${fn:substring(info.beizhu,0,16)}...
                    </c:when>
                    <c:otherwise>
                        ${info.beizhu}
                    </c:otherwise>
                </c:choose>
            </td>

                            <td width="40px" align="center">
                                <a href="${contextPath}/banciDetailQian/${info.id}">
                                    详细
                                </a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
                <br>
                <%@ include file="common/fenye.jsp"%>
                <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF"
                       style="border-collapse:collapse" class="newsline">
                    <tr>
                        <td align="center" bgcolor="">
                            <input type="button" value="返回" style="width: 60px;" onClick="javascript:history.back()" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </section>
    <%@ include file="qtdown.jsp" %>
</main>
</body>
</html>
